<? 
	session_start();
	require("connect.php");	
	$tieude=$_POST["tieude"];
	$trichdan=$_POST["trichdan"];
	$anh=$_POST["anh"];
	$noidung=$_POST["noidung"];
	$nguoidang=$_POST["tacgia"];
	$ngay=date("Y-m-d");		
	$malt=$_POST["loaitin"];
	$trangthai=$_POST["trangthai"];		
	$sql="insert into tintuc(tieude,trichdan,anh,noidung,nguoidang,ngay,malt,trangthai) values('{$tieude}','{$trichdan}','{$anh}','{$noidung}','{$nguoidang}','{$ngay}','{$malt}','{$trangthai}')";	
	mysql_query("$sql") or die("Error!");
	mysql_close();
	header("Location:tintuc_admin.php");
	
?>